﻿using System;

namespace MicroConfig.NetCore.Client
{
    public class MicroConfigOptions
    {
        public string SignalRUrl { get; set; }
        public string ProjectName { get; set; }
        public string AccessToken { get; set; }

        /// <summary>
        /// 推荐 dev fat  uat pro，默认pro
        /// </summary>
        public string Environment { get; set; } = "pro";

        /// <summary>
        /// 重连策略
        /// </summary>
        public Func<int, TimeSpan> ReconnectionPolicy { get; internal set; } = (i) => { return TimeSpan.FromSeconds(5); };

        public int ConnectionRetryCount { get; internal set; } = 3;
    }
}
